package com.stack.knowyoubase.constant;

/**
 * 定义全局常量
 * 角色和响应状态
 *
 * @author stack
 */
public class GlobalConst {

    /**
     * 角色相关常量
     */
    public static final String TEACHER_ROLE = "ROLE_teacher";
    public static final String STUDENT_ROLE = "ROLE_student";

    /**
     * 响应类型的常量
     */
    public static final String SUCCESS_TYPE = "success";
    public static final String ERROR_TYPE = "error";

    /**
     * 响应状态码常量
     */
    public static final int SUCCESS_CODE = 0;
    public static final int ERROR_CODE = 1;
    public static final int WARN_CODE = -1;

    /**
     * 分页相关常量
     */
    public static final int PAGE_NUM = 0;
    public static final int LIMIT_NUM = 10;

    /**
     * 作业状态常量
     */
    public static final Integer HSTATUS_RELEASE = 1;
    public static final Integer HSTATUS_END = 2;

    /**
     * 作业类型常量
     */
    public static final Integer HOMEWORK_PRE = 1;
    public static final Integer HOMEWORK_AFTER = 2;
    public static final Integer HOMEWORK_LAB = 3;
    public static final Integer HOMEWORK_ALL = 0;

    /**
     * 文件上传路径
     */
    public static final String AVATAR_IMG = "user/avatar/";
    public static final String HOMEWORK_IMG = "/image/";
    public static final String EXPREPORT_FILE = "/expreport/";
    public static final String COURSEWARE_FILE = "/courseware/";
    public static final String VIDEO_FILE = "/video/";

    /**
     * 邮件发送账户常量
     */
    public static final String EMAIL_USERNAME = "2535789760@qq.com";


}
